from chats.models import ChatData,GroupData,GroupMessage
from users.models import User,Friend

def get_chat_count(user,friend):
    chats_count = ChatData.objects.filter(chat_a=friend, chat_bir=user, status=0).count()
    print(chats_count)
    return chats_count

def get_group_chat(user, group):
    chat_data = GroupMessage.obje
